#define _CRT_SECURE_NO_WARNINGS
#include "Single_Linked_List.h"

void TestSLList1()
{
	SLLNode* plist = NULL;
	SLLPushFront(&plist, 1);
	SLLPushFront(&plist, 2);
	SLLPushFront(&plist, 3);

	SLLPrint(plist);
	SLLPushBack(&plist, 10);
	SLLPrint(plist);
	SLLPopBack(&plist);
	SLLPopBack(&plist);
	SLLPopBack(&plist);
	SLLPopBack(&plist);

	SLLPrint(plist);

}

void TestSLList2()
{
	SLLNode* plist = NULL;
	SLLPushFront(&plist, 1);
	SLLPushFront(&plist, 2);
	SLLPushFront(&plist, 3);
	SLLPrint(plist);
	SLLDestroy(&plist);
	plist = NULL;
	SLLPrint(plist);

}
int main()
{
	//TestSLList1();
	TestSLList2();

	return 0;
}